package dbz.domain.attack.conditions;

import dbz.domain.Fighter;
import dbz.domain.attack.Attack;

public class KiLevelCondition implements AttackCondition {

	private Integer requiredKiLevel;

	public KiLevelCondition(Integer kiLevelRequired) {
			this.requiredKiLevel = kiLevelRequired;
	}
	
	@Override
	public Boolean isSatisfied(Attack attack, Fighter fighter) {
		return fighter.getKiLevel() >= requiredKiLevel;
	}
	
	@Override
	public String toString() {
		return ""+requiredKiLevel;
	}

	@Override
	public String getDescription() {
		return "El luchador requiere un ki de nivel " + requiredKiLevel + " para ejecutar el ataque.";
	}

}
